/**
 * 
 */
package com.gmail.blackdog1987.carcare.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gmail.blackdog1987.carcare.dao.ConfigDao;
import com.gmail.blackdog1987.carcare.service.ConfigService;
import com.gmail.blackdog1987.carcare.util.ErrorCode;

/**
 * 
 * @author 董国超
 *
 */
@Service("configService")
public class ConfigServiceImpl implements ConfigService {
	
	@Autowired
	private ConfigDao configDao;

	@Override
	public Map<String, Object> getAll(Map<String, String> filter) {
		Map<String, Object> result = new HashMap<String, Object>();
		result.put("code", ErrorCode.NO);
		result.put("result", configDao.list());
		return result;
	}
}
